package com.cmc.cloud.cmclink.doc.api.document.emums;

import lombok.Getter;

/**
 * @author lzp
 * @date 2025/7/22
 */
public enum MultiLocalCostCalculationEnum {
    /**
     * 报关费
     */
    CUSTOMSCLEARANCEFEE("CustomsClearanceFee", "报关费", "Customs Clearance Fee", "declare"),
    /**
     * 支线费
     */
    FEEDERCHARGE("FeederCharge", "支线费", "Feeder Charge", "barge"),
    /**
     * 装卸费
     */
    LOADINGUNLOADINGCHARGES("LoadingUnloadingCharges", "装卸费", "Loading/Unloading Charges", "terminal"),
    /**
     * 全部
     */
    ALLCALCULATION("AllCalculation", "全部计算", "All Calculation", "");

    @Getter
    private final String value;

    @Getter
    private final String label;

    @Getter
    private final String labelEn;

    @Getter
    private final String agreementValue;

    MultiLocalCostCalculationEnum(String value, String label, String labelEn, String agreementValue) {
        this.value = value;
        this.label = label;
        this.labelEn = labelEn;
        this.agreementValue = agreementValue;
    }

    public static MultiLocalCostCalculationEnum getAgreementValueInfo(String value) {
        for (MultiLocalCostCalculationEnum enumInfo : MultiLocalCostCalculationEnum.values()) {
            if (enumInfo.getValue().equals(value)) {
                return enumInfo;
            }
        }
        return null;
    }
}
